module.exports = {
  configureWebpack: {
    resolve: {
      // 配置路径
      alias: {
        'assets': '@/assets',
        'common': '@/common',
        'components': '@/components',
        'network': '@/network',
        'views': '@/views',
      }
    }
  },
  devServer: {
    open:true,
    proxy: {
      '/api': {
        target: "http://localhost:2020/", //本地后端地址
        changeOrigin: true, //允许跨域
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}